﻿/*
==================================================================
    注意：此文件为Auto代码，不可手动修改【单据】
==================================================================
*/

namespace Entities
{
    /// <summary>
    /// 单据
    /// </summary>
    [SugarTable("wb.Bill")]
    public partial class Bill
    {
        /// <summary>
        /// 编号
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnName = "BillID")]
        public int BillID { get; set; }
        
        /// <summary>
        /// 单号
        /// </summary>
        [SugarColumn(ColumnName = "Code")]
        public string Code { get; set; }
        
        /// <summary>
        /// 日期
        /// </summary>
        [SugarColumn(ColumnName = "BillDate")]
        public DateTime BillDate { get; set; }
        
        /// <summary>
        /// 类型
        /// </summary>
        [SugarColumn(ColumnName = "InOutType")]
        public int InOutType { get; set; }
        
        /// <summary>
        /// 业务类型
        /// </summary>
        [SugarColumn(ColumnName = "OperTypeID")]
        public int OperTypeID { get; set; }
        
        /// <summary>
        /// 仓库
        /// </summary>
        [SugarColumn(ColumnName = "WarehouseID")]
        public int WarehouseID { get; set; }
        
        /// <summary>
        /// 申请人
        /// </summary>
        [SugarColumn(ColumnName = "ApplyUserID")]
        public int ApplyUserID { get; set; }
        
        /// <summary>
        /// 申请人姓名
        /// </summary>
        [SugarColumn(ColumnName = "ApplyUserName")]
        public string ApplyUserName { get; set; }
        
        /// <summary>
        /// 提交人
        /// </summary>
        [SugarColumn(ColumnName = "SubmitUserID")]
        public int? SubmitUserID { get; set; }
        
        /// <summary>
        /// 提交人姓名
        /// </summary>
        [SugarColumn(ColumnName = "SubmitUserName")]
        public string SubmitUserName { get; set; }
        
        /// <summary>
        /// 提交时间
        /// </summary>
        [SugarColumn(ColumnName = "SubmitDate")]
        public DateTime? SubmitDate { get; set; }
        
        /// <summary>
        /// 退回/作废人
        /// </summary>
        [SugarColumn(ColumnName = "BackUserID")]
        public int? BackUserID { get; set; }
        
        /// <summary>
        /// 退回/作废人姓名
        /// </summary>
        [SugarColumn(ColumnName = "BackUserName")]
        public string BackUserName { get; set; }
        
        /// <summary>
        /// 退回/作废时间
        /// </summary>
        [SugarColumn(ColumnName = "BackDate")]
        public DateTime? BackDate { get; set; }
        
        /// <summary>
        /// 确认人
        /// </summary>
        [SugarColumn(ColumnName = "ConfirmUserID")]
        public int? ConfirmUserID { get; set; }
        
        /// <summary>
        /// 确认人姓名
        /// </summary>
        [SugarColumn(ColumnName = "ConfirmUserName")]
        public string ConfirmUserName { get; set; }
        
        /// <summary>
        /// 确认时间
        /// </summary>
        [SugarColumn(ColumnName = "ConfirmDate")]
        public DateTime? ConfirmDate { get; set; }
        
        /// <summary>
        /// 状态
        /// </summary>
        [SugarColumn(ColumnName = "Status")]
        public int Status { get; set; }
        
        /// <summary>
        /// 打回原因
        /// </summary>
        [SugarColumn(ColumnName = "BackReason")]
        public string BackReason { get; set; }
        
        /// <summary>
        /// 备注
        /// </summary>
        [SugarColumn(ColumnName = "Remark")]
        public string Remark { get; set; }
        
        /// <summary>
        /// 创建人
        /// </summary>
        [SugarColumn(ColumnName = "CreateUserID")]
        public int CreateUserID { get; set; }
        
        /// <summary>
        /// 创建人姓名
        /// </summary>
        [SugarColumn(ColumnName = "CreateUserName")]
        public string CreateUserName { get; set; }
        
        /// <summary>
        /// 创建日期
        /// </summary>
        [SugarColumn(ColumnName = "CreateDate")]
        public DateTime CreateDate { get; set; }
    }
}
